package com.adtech.core.dao.formatter;

import com.adtech.core.util.DateUtil;

/**
 * 日期格式转换
 * 日期格式转换 yyyy年M月
 * @author Dormin 
 * @since 2011-6-16 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class YearAndMonthFormatter implements Formatter {

	public Object format(Object obj) {
		return DateUtil.string2Date((String) obj,"yyyy年M月");
	}

}
